import http from '@/common/luchApi/index.js'
const objToUrl = obj => {
 	let arr = [];
 	for (let i in obj) {
 		if (obj.hasOwnProperty(i)) {
 			arr.push(encodeURIComponent(i) + "=" + encodeURIComponent(obj[i]));
 		}
 	}
 	return arr.join("&");
 }
 
export default {
	// 注册
	registerUser(data) {
		return http.post('645b0ae5e26ba', data)
	},
	// 发送验证码
	sendCode(data) {
		return http.post('5b5bdc44796e8', data)
	},
	// 密码登录
	sendLogin(data) {
		return http.post('6459ea02ba473', data)
	},
	// 忘记密码
	forgetPwd(data) {
		return http.post('6486ca3fadf64', data)
	},
	// 修改个人资料
	changeUserinfo(data) {
		return http.post('6486cc08551d6', data)
	},
	// 图片上传
	uploadImg(data) {
		return http.post('64803624da6de', data)
	},
	// 获取标签列表
	getLable(data) {
		return http.post('6896ce293f60e', data)
	},
	// 编辑个人资料
	editUserInfo(data) {
		return http.post('6486cc08551d6', data)
	},
	// 获取首页分类列表、轮播图列表、金刚区分类列表、热搜词列表接口
	homePageHomeTopData() {
		return http.get('homePage/home-top-data')
	},
	//获取用户信息
	getUserInfo(){
		return http.post('6486f3c53f10f')
	},
	//首页达人/星选列表
	getHomeList(data){
			return http.post('68976065efe10', data)
	},
	//首页语音互动列表
	getHomeActiceList(data){
		return http.post('6897a677855c9', data)
	},
	//达人详情
	getActiceMsg(data){
	 	return http.post('68977949e379f', data)
	},
	//达人相册/视屏
	getActiceImgorVideo(data){
	 	return http.post('68978ea120211', data)
	},
	//达人详情动态列表
	getActiceDong(data){
	 	return http.post('68988a3623dd1', data)
	},
	//达人空间
	getSpaceDetail(data){
	 	return http.post('6897b61fce074', data)
	},
	//解锁相册/微信等
	getUnlock(data){
	 	return http.post('68979856d2b90', data)
	},
	
	//关注
	follow(data){
		return http.post('68977fe9d415c', data)
	},
	//关注列表
	getGuanList(data){
	 	return http.post('68990515421c5', data)
	},
	//订单列表
	getOrderList(data){
	 	return http.post('68a1fc1c54517', data)
	},
	//我的相册
	getPhotoAlbumList(data){
	 	return http.post('68978df164e50', data)
	},
	//我的积分/和明细
	getPointDetail(data){
	 	return http.post('6793611c9131b', data)
	},
	//达人认证提交
	
	getActiveApproval(data){
	 	return http.post('68974f87f3c15', data)
	},
	
	//实名认证提交
	
	getRealNameApproval(data){
	 	return http.post('68974c6ea61dd', data)
	},
	getRealNamemsg(data){
	 	return http.post('68974bef9d7d7', data)
	},
	 
	getIMUserSig(data){
	 	return http.post('68bd9274901c0', data)
	},
}